import request from '@/utils/request'

// 查询分销操作日志列表
export function listDistributionLog(query) {
  return request({
    url: '/ruoyi/distributionLog/list',
    method: 'get',
    params: query
  })
}

// 查询分销操作日志详细
export function getDistributionLog(logId) {
  return request({
    url: '/ruoyi/distributionLog/' + logId,
    method: 'get'
  })
}

// 新增分销操作日志
export function addDistributionLog(data) {
  return request({
    url: '/ruoyi/distributionLog',
    method: 'post',
    data: data
  })
}

// 修改分销操作日志
export function updateDistributionLog(data) {
  return request({
    url: '/ruoyi/distributionLog',
    method: 'put',
    data: data
  })
}

// 删除分销操作日志
export function delDistributionLog(logId) {
  return request({
    url: '/ruoyi/distributionLog/' + logId,
    method: 'delete'
  })
}
